import React, { Component } from 'react';
import {
  BrowserRouter as Router,
  Route,
  Link
} from 'react-router-dom';
import Discover from './Discover';
import Mine from './Mine';

class App extends Component {
  render() {
    return (
      <div>
        <Router>
          <div>
            <ul>
              <li><Link to='/'>首页11</Link></li>
              <li><Link to='/Discover'>Discover</Link></li>
              <li><Link to='/Mine'>主题列表</Link></li>
            </ul>
            <Route exact path='/Discover' component={Discover} />
            <Route path='/Mine' component={Mine} />
          </div>
        </Router>
      </div>
    )
  }
}

export default App